﻿using System;
using System.Collections.Generic;
using Needle.Bus.Configuration;
using Needle.Bus.Engine.Management;

namespace Needle.Bus.Engine.Factories
{
    public class PerfCounterFactory : IFactory<IPerformanceCounter>
    {

        public PerfCounterFactory(BusConfiguration busConfiguration)
        {
            if (busConfiguration == null)
                throw new ArgumentNullException("busConfiguration", "busConfiguration is null.");

        }

        public IPerformanceCounter Create(string id)
        {
            return new PerfCounter(id);
        }

        public IList<IPerformanceCounter> CreateAll()
        {
            throw new NotSupportedException();
        }

    }
}
